package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 订单评价表
 * </p>
 *
 * @author ${author}
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("d_order_comment")
public class OrderComment implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    private Integer storeId;

    private Integer workerId;

    private String workerName;

    /**
     * 是否是默认评价
     * 0 否
     * 1 是
     */
    private Integer isDefault;

    private Integer userId;

    @TableField("user_nickName")
    private String userNickname;

    private String userAvatar;

    private String type;

    private String comment;

    private Integer score;

    private String img;

    @TableField("`is_show`")
    private Integer isShow;

    private String addTime;

    private Integer autoComment;

    @TableField(exist = false)
    private String[] arr;

    /**
     * 是否为会员
     * null 否
     * 0    否
     * 1    是
     */
    @TableField(exist = false)
    private Integer isMember;

    @ApiModelProperty("是否匿名")
    private Boolean anonymous;

    @ApiModelProperty("标签文字,前端传入")
    private String tag;

    @ApiModelProperty("是否统计")
    private Boolean isSum;

    @ApiModelProperty("评价渠道 1微信 2抖音")
    private Integer channelType;

    private Integer status;


    @TableField(exist = false)
    private Integer firstStatus;    // 是否第一次购买0否-1是
}
